package cn.lili.modules.search.entity.dto;

import cn.lili.modules.search.entity.dos.EsGoodsIndex;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * @author paulG
 * @since 2022/1/19
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class EsGoodsIndexDTO extends EsGoodsIndex {

    private static final long serialVersionUID = -9097878717454371421L;

    public EsGoodsIndexDTO(EsGoodsIndex goodsIndex) {
        BeanUtils.copyProperties(goodsIndex, this);
    }
}
